checkUserInfo()
renderUserInfo()
document.querySelector('#logout').addEventListener('click', logout)
//获取学生信息
async function getStudentInfo() {
    let res = await axios.get('/dashboard')
    let data = res.data.overview
    console.log(data);
    renderStudentInfo(data)
}

function renderStudentInfo(data) {
    Object.keys(data).forEach(key => {
        document.querySelector('.' + key).innerHTML = data[key]
    })
}
getStudentInfo()